<template>
    <div class="history-list-item">
        <div class="left-img">
            <img src="@/assets/test.jpg" alt="缩略图">
        </div>
        <div class="right-info">
            <h4>{{time}}</h4>
        </div>
    </div>
</template>

<script>
    export default {
        name: "HistoryListItem",
        props: {
            time: {
                type: String,
                require: true,
                default: '默认时间'
            },

        }
    }
</script>

<style lang="scss" scoped>

    @import "~@/styles/global.scss";

    $item-height: 85px;

    .history-list-item {
        display: flex;
        height: $item-height;
        background-color: white;
        margin-bottom: 15px;
        border-radius: 5px;
        overflow: hidden;
        transition: all .5s;
        box-shadow: 0 0 30px #dbdbdb;


        &:hover {
            box-shadow: 3px 3px 20px #d7d7d7;
        }

        &:last-child {
            margin-bottom: $bar-height + 40px;
        }

        .left-img {
            height: 100%;
            width: 30%;
            min-width: $item-height;
            overflow: hidden;
            text-align: center;

            img {
                height: 100%;
            }
        }

        .right-info {
            margin: 10px 15px;

            h4 {
                font-size: 14px;
            }
        }
    }
</style>
